package com.vehicle.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@Component
@FeignClient("parking-service")//模块名称
public interface ParkingFeign {

    @GetMapping("/parking-lot/getLocation/{parkingId}")
    public String getLocationByParkingId(@PathVariable("parkingId") Integer parkingId);

    @PutMapping("/parking-lot/{parkingId}/{state}")
    public Boolean updateParkingState(@PathVariable("parkingId") Integer parkingId,@PathVariable("state") Integer state);

    @GetMapping("/category/CategoryNameById/{id}")
    public String getCategoryNameById(@PathVariable("id") Integer id);
}
